a04d34e20ae456dbe7b389acc93401dade95afdf,org.eclipse.buildship.core/src/main/java/org/eclipse/buildship/core/workspace/internal/SubprojectMarkerUpdater.java,SubprojectMarkerUpdater,isNestedSubProject,#IFolder#,92

Before Change



    public static boolean isNestedSubProject(IFolder folder) {
        try {
            IPath relativePath = RelativePathUtils.getRelativePath(folder.getProject().getFullPath(), folder.getFullPath());
            Collection<String> knownPaths = PersistentUpdaterUtils.getKnownItems(folder.getProject(), PERSISTENT_PROP_NAME);
            return knownPaths.contains(relativePath.toPortableString());
        } catch (Exception e) {
            CorePlugin.logger().debug(String.format("Could not check whether folder %s is a sub project.", folder.getFullPath()), e);

After Change


    }

    public void update(IProgressMonitor monitor) {
        SubMonitor progress = SubMonitor.convert(monitor, 2);
        try {
            List<IPath> subfolders = getNestedSubProjectFolderPaths(progress.newChild(1));
            updateSubProjectMarkers(subfolders, progress.newChild(1));
        } catch (Exception e) {
            String message = String.format("Could not update sub-project markers on project %s.", this.project.getName());